home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 July: Mac OS SDK / Dev.CD Jul 96 SDK / Dev.CD Jul 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc / OpenDoc Parts / KickStart Parts / KickStart Documentation / Button Read Me next >
Encoding:
Text File  |  1996-04-26  |  4.5 KB  |  72 lines  |  [ttro/ttxt]

  1. Button Read Me
  2. By The OpenDoc™ Parts Team
  3. April 22, 1996
  4.  
  5.  
  6. © 1996  Apple Computer, Inc. All Rights Reserved.
  7. Apple, the Apple logo, and Macintosh are registered trademarks of Apple Computer, Inc.
  8. Mac and OpenDoc are trademarks of Apple Computer, Inc.
  9. ------------------------------------------------------------------------------------------------------------------------------
  10.  
  11.  
  12. Button Overview
  13. This is a preliminary release of the OpenDoc Button part.  The Button will allow users to drop pictures, text, sounds, and OSA script data onto it.  A picture will be displayed on the face of the button.  Text, sounds, or OSA scripts are allowed as the content of the button.  When the button is pressed, one of
  14. the following actions will be performed, depending on the content data type:  for text data, an attempt
  15. will first be made to parse it as a URL and hand it off to the appropriate service helper.  If that fails, then the text will be spoken.  For sound and script data, the sound will be played or the script will be executed.  Only one type of content may be contained within the button at one time (i.e., text, sound, or script).  When the button doesn't contain any content, the default behavior is to play the system beep when the button is pressed.  The button label, which appears on the face of the button, may be edited within the Settings dialog.
  16.  
  17. As it is not possible to "activate" the Button part, this part will not have any menus associated with it.  However, when it's the root, it will add the "About Button..." menu item to the Apple menu.  For consistency, no other menus will be added when the Button is the root part.
  18.  
  19. From within the "Part Info" dialog, the user can choose to bring up the "Settings" dialog.  This dialog contains a text edit field for the label.  Settings are also provided for the display of the picture and the height of the button.  The Button settings are also accessible with the cmd-option modifier keys.  See the "Button Settings Dialog" section for further information.
  20.  
  21. Button Content
  22. The Button part allows different types of data to be dropped onto it as content.  The data types are: 
  23.                     • Text data        ('TEXT')
  24.                     • Sound data    ('snd ')
  25.                     • OSA (Open Scripting Architecture) compiled scripts
  26.  
  27. Although Macintosh picture data ('PICT') may be dropped onto the button, it is not
  28. considered to be "content".
  29.  
  30. System Software Requirements 
  31.     • OpenDoc™ 1.0 or later
  32.     • AppleScript™ 1.1 or later
  33.     • Text To Speech software - Speech Manager, MacinTalk
  34.     • Internet Config Extension
  35.  
  36. To provide the text-to-speech capability, the Speech Manager must be installed.  In 
  37. order to support the internet, the Internet Config Extension must be installed. 
  38.  
  39. Button Settings Dialog
  40. The Button Settings dialog is accessible in two ways, either through the Part Info dialog (select the Settings… button) or by Cmd-Option clicking the Button part.  This dialog enables the user to edit 
  41. the label; choose the picture display settings; and choose the height of the button.
  42.  
  43. Picture Display
  44. The options available for displaying a picture on a button are:
  45.  
  46.                     • No Picture                                          -> will not display a picture on the face of the button
  47.                     • Default Picture      -> displays a picture representing the contents of the button
  48.                                                                                                                                                                                     (i.e., sound, script,    text to     speech, or URL).  A temporary 
  49.                                                                                                                                                                                     picture is currently displayed for the URL representation.
  50.                                                                                                                                                                                 This will change in the future.
  51.                     • Custom Picture      -> displays a picture that is dropped on the button via drag
  52.                                                                                                                                                                                     and drop.  If this option    is selected and a custom picture does
  53.                                                                                                                                                                                     not exist, the default picture will be displayed until a custom 
  54.                                                                                                                                                                                     one is available.
  55.  
  56. Button Height
  57. These settings control the height of the button:
  58.  
  59.                     • Small                                                                      -> this button size allows for a picture to be displayed as 16x16
  60.                     • Large                                                                      -> this button size allows for a picture to be displayed as 32x32
  61.  
  62.  
  63. Future
  64. In its final version, the Button will support Cyberdog.
  65.  
  66. Known Problems/Limitations
  67. - currently, will only run on PPC
  68. - a crash occurs when trying to drag and drop an applet onto the button
  69. - button is a fixed size, should be adjustable by user
  70.  
  71. Bug Reporting
  72. Report any problems you find by using the bug report form on this CD to odbugs@apple.com or use the bug report form at http://www.opendoc.apple.com/forms/bug_report.html.